import request from "./request.js"; 
export function ChannelsList(){
    return request.get("/pay/payment/channel/list") 
} 
export function Payment(data){
    return request.post("/pay/paymment/prepay/",data)
} 
//模拟支付回调
export function PaymentNotify(data){
    return request.post("/pay/paymment/notify/wxpay",data)
} 


export function PayOrderList(data){
    return request.post("/pay/payment/order/query",data) 
}

export function UserBalance(){
    return request.get("/pay/payment/query/balance")
}

export function GetUserBalanceList(){
    return request.get("/pay/api/balance/change/list")
}

export function BalanceDeduct(data){
    return request.post("/pay/api/balance/change/deduct",data)
}
export function PayRefund(data){
    return request.get("/pay/payment/order/refund/"+data)
}